<include file="Common@Public:header" />
    <div class="amz-banner">
        <div class="am-container" data-am-scrollspy="{animation: 'scale-up', repeat: false}">
            <div class="am-u-md-12">
                <h1>{$info.title}</h1>
                <p>{$info.description}</p>
            </div>
        </div>
    </div>

    <div class="am-container am-margin-top am-margin-bottom" style="min-height:600px;">
        <div class="am-u-md-9 am-u-sm-12">
            <div class="left-box">

                <div class="am-article">
                    <div class="am-article-hd">
                        <div class="am-article-title am-text-center">{$info.title}</div>
                        <div class="am-cf am-article-meta">
                            <div class="am-fl">
                                <span class="author">{$info.uid|get_username}</span>
                                <span> 发表于 {$info.create_time|date='Y-m-d H:i',###}</span>
                            </div>
                            <div class="am-fr">
                                <span><i class="am-icon-eye"></i> {$info.view}</span>&nbsp;&nbsp;
                                <span><i class="am-icon-comment"></i> {$info.comment}</span>
                            </div>
                        </div>
                    </div>
                    <div class="am-article-bd am-margin-top">
                        <table class="am-table am-table-bordered">
                                <tbody>
                                    <tr>
                                        <td width="20%">文件尺寸</td>
                                        <td>{$info.size}</td>
                                    </tr>
                                    <tr>
                                        <td>下载次数</td>
                                        <td>{$info.download}</td>
                                    </tr>
                                    <tr>
                                        <td>下载地址</td>
                                        <td><a href="{:U('File/download?id='.$info['id'])}" class="am-btn am-btn-primary">立即下载</a></td>
                                    </tr>
                                    <tr>
                                        <td>文件描述</td>
                                        <td>{$info.description|default='暂无描述'}</td>
                                    </tr>
                                </tbody>
                        </table>

                        <div>{$info.content}</div>
                    </div>

                    <ul class="am-pagination">
                        <article:prev name="prev" info="info"><li class="am-pagination-prev"><a href="{:U('?id='.$prev['id'])}">&laquo; 上一篇</a></li></article:prev>
                        <article:next name="next" info="info"><li class="am-pagination-next"><a href="{:U('?id='.$next['id'])}">下一篇 &raquo;</a></li></article:next>
                    </ul>
                </div>

                <div class="am-cf am-margin-top">
                    {:hook('documentDetailAfter',$info)}
                </div>
            </div>
        </div>
        <div class="am-u-md-3 am-u-sm-12">
            <div class="right-box">
                <div class="head-title"><h2>热门文章</h2></div>
                <div class="body ranking">
                    <ul class="unstyled">
                    <article:list name="list" category="$category['id']" child="true">
                        <li <lt name="key" value="3">class="top3"</lt>>
                            <i>{$key+1}</i><a href="{:U('Article/detail?id='.$list['id'])}" title="{$list.title}">{$list.title}</a>
                        </li>
                    </article:list>
                    </ul>
                </div>
            </div>
        </div>
    </div>
<include file="Common@Public:footer" />